package com.leo.erp.service;

import java.util.List;

import javax.servlet.http.HttpServletRequest;

import com.leo.erp.dto.UserBusinessExecution;
import com.leo.erp.entity.UserBusiness;
import com.leo.erp.util.GlobalRuntimeException;

public interface UserBusinessService {
	
	/**
	 * 更新按钮分配
	 * @param userBusinessId
	 * @param btnStr
	 * @return
	 */
	UserBusinessExecution updateBtnStr(int userBusinessId, String btnStr);
	
	UserBusinessExecution getBasicData(String keyId, String type);
	
	/**
	 * 查询该用户角色关联关系信息是否存在
	 * @param type
	 * @param keyId
	 * @return
	 */
	UserBusinessExecution checkIsValueExist(String type, String keyId);
	
	/**
	 * 更新用户角色关系关联信息
	 * @param userBusiness
	 * @return
	 */
	UserBusinessExecution updateUserBusiness(UserBusiness userBusiness);
	
	/**
	 * 检查用户角色关系信息是否存在
	 * @param TypeVale
	 * @param KeyIdValue
	 * @param UBValue
	 * @return
	 */
	UserBusinessExecution checkIsUserBusinessExist(String TypeVale, String KeyIdValue, String UBValue);
	
	/**
	 * 获取用户角色关系列表信息
	 * @param type
	 * @param keyId
	 * @param deleteFlag
	 * @return
	 */
	List<UserBusiness> getUserBusinessList(String type, String keyId, String deleteFlag);
	
	/**
	 * 插入用户角色关系信息
	 * @param beanJson
	 * @param request
	 * @return
	 * @throws GlobalRuntimeException
	 */
	UserBusinessExecution insertUserBusiness(String beanJson, HttpServletRequest request) throws GlobalRuntimeException;
}
